<%--
  Created by IntelliJ IDEA.
  User: 18358
  Date: 2022/4/15
  Time: 17:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<meta charset="utf-8">
<title>新增供应商信息</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
<body>
<!-- Table goes in the document BODY -->
<form method="post" action="${pageContext.request.contextPath}/purchase/add" >
    <input type="hidden" value="${purchase.id==null? 0:purchase.id}" name="id">
    <input type="hidden" value="${purchase.goodsId}" name="goodsId">
    <input type="hidden" value="${purchase.supplierId}" name="supplierId">
    <input type="hidden" value="${purchase.user.name}" name="userName">
    <input type="hidden" value="${purchase.goods.goodsNum}" name="goodsNum">
    <table class="hovertable" style="width: 80%;height: 100%">
        <tr>
            <th colspan="2" style="font-size: 50px;height: 100px">新增商品</th>
        </tr>
        <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
            <td style="font-size: 30px;width: 300px">进货商品名</td><td>
            <input required type="text" name="goodsName" value="${purchase.goods.goodsName}" style="width: 80%;height: 100%;font-size: 30px"></td>
        </tr>
        <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
            <td style="font-size: 30px;width: 300px">进货量</td><td>
            <input required type="text" name="amount" value="${purchase.amount}" style="width: 80%;height: 100%;font-size: 30px"></td>
        </tr>
        <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
            <td style="font-size: 30px;width: 300px">进货单价</td><td>
            <input required type="text" name="price" value="${purchase.price}" style="width: 80%;height: 100%;font-size: 30px"></td>
        </tr>
        <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
            <td style="font-size: 30px;width: 300px">进货商品提供商</td><td>
            <input required type="text" name="supplierName" value="${purchase.supplier.supplierName}" style="width: 80%;height: 100%;font-size: 30px"></td>
        </tr>
        <tr style="background-color:#ffffff;text-align:center">
            <td colspan="2"><input type="submit" value="提交" style="width:100%;height: 100%" ></td>
        </tr>
    </table>
</form>
</body>
</html>
